<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<head>
	<sx:head cache="false" />
	<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css" type="text/css" />
	<link rel="stylesheet" href="/hrs-intranet/styles/errortag.css" type="text/css" />
</head>
<div>

<s:if test="hasFieldErrors()">
	<div class="oldErrorMsg">
		<h4 class="oldErrorTitle">Error(s) with submission:</h4>
		<s:iterator value="fieldErrors">
			<s:iterator value="value">
				<li>
					<font class="errorMsgFont">
						<s:property/>
					</font>
				</li>
			</s:iterator>
		</s:iterator>
	</div>
	<br/>
	<br/>
</s:if>

 <s:form action="AvailableLicenseDaysAction_save" validate="true"  cssClass="formClass">
   <s:hidden key="requestId"/>
   <s:hidden key="actionMethod" value="%{actionMethod}"/>
 
   <s:textfield key="currentPeriodVacationDays" readonly="%{readOnly}" label="Remaining Vacation Days" required="true" /> 
   <s:textfield key="previousPeriodsVacationDays" readonly="%{readOnly}" label="Remaining Vacation Days from previous period/s" required="true" />
   <s:textfield key="studyLicenseDays" disabled="true" label="Available Study Days"/>
   <s:textfield key="compensationDays" disabled="true" label="Days Of Compensation"/>
   <s:if test="%{readOnly}">
   	<s:textfield key="lastCalculationDate" readonly="true" label="Ultima Fecha de Calculo de las Vacaciones"/>
   </s:if>
   
   <s:submit value="OK" cssClass="btn" cssStyle="position:relative; left:-95px;"/>
</s:form>
</div>

<div>
	<form action="/hrs-intranet/hrs2/TimeOffEmployeeAction_list.action" method="post">
		<s:hidden key="requestId" value="%{model.employee.id}"/>
		<s:hidden key="actionMethod" value="%{actionMethod}"/>
		<button type="submit" Class="btn" style="position:relative; left:288px; top:-39px; _top:-44px; height:20px; _height:22px;">
		<s:if test="%{!saved}">Cancel</s:if>
		<s:if test="%{saved}">Go Back</s:if>
		</button>
	</form>
</div>